/*
*  Copyright 2020-2021 Li Fei
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package com.pengshun.modules.api.coal.service.dto;

import com.pengshun.modules.api.coal.domain.CoalInfo;
import com.pengshun.modules.api.coal.validator.First;
import com.pengshun.modules.api.coal.validator.Third;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.sql.Timestamp;
import java.math.BigDecimal;
import java.io.Serializable;
import java.util.List;

/**
* @description /
* @author lifei
* @date 2020-11-06
**/
@Data
public class CoalDto implements Serializable {

    /** 名称 */
    private String name;

    /** 商户ID */
    private Long merchantId;

    /** 商户名称 */
    private String merchantName;

    /** 煤炭类型 */
    private String categoryName;

    /** 煤炭类型编码 */
    private String categoryCode;

    /** "煤炭类型id" */
    private Long categoryId;

    /** 备注 */
    private String remark;

    /** 状态 0：正常；1：锁定；2：删除 */
    private Integer status;

    /** 创建人 */
    private String createBy;

    /** 创建时间 */
    private Timestamp createTime;

    /** 更新人 */
    private String updateBy;

    /** 更新时间 */
    private Timestamp updateTime;

    /** 价格 */
    private BigDecimal price;

    /** 状态（0：未上架，1：上架） */
    private Integer isShow;

    /** 上架时间 */
    private Timestamp sellTime;

    /** id */
    @NotNull(message = "coalId不能为空", groups = {Third.class})
    private Long coalId;

    /** 所属煤矿ID */
    private Long mineMouthId;

    /** 煤矿价格 */
    private BigDecimal coalPrice;

    /** 煤炭单位 */
    private String priceUnit;
    private String allSulphur;
    private String wholeWater;
    private String serchHuifen;

    /** 发热量 */
    private String calorificValue;

    /** 煤炭工艺 */
    private String coalTechnologyName;

    /** 煤炭工艺编码 */
    private String coalTechnologyCode;

    /** 化验时间 */
    private Timestamp laboratoryTime;

    /** 化验单图片 */
    private String laboratoryBillPic;

    /** 化验单单位 */
    private String laboratoryCompany;

    /** 煤炭图片 */
    private String coalPic;

    /** 煤炭用途 */
    private  String useing;

    private String mineMouthName;

    private List<CoalInfoDto> coalInfos;
}